import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
    // 首页
    {
        path: '/',
        name: 'Index',
        component: () =>
            import ('../views/index.vue')
    },
    //商品详情
    {
        path: '/shopDetail',
        name: 'shopDetail',
        component: () =>
            import ('../views/shopDetail.vue')
    },
    //pic
    {
        path: '/pic',
        name: 'pic',
        component: () =>
            import ('../views/pic.vue')
    },
    //content
    {
        path: '/content',
        name: 'content',
        component: () =>
            import ('../views/content.vue')
    },
    //pay
    {
        path: '/pay',
        name: 'pay',
        component: () =>
            import ('../views/pay.vue')
    },
    //paging
    {
        path: '/paging',
        name: 'paging',
        component: () =>
            import ('../views/paging.vue')
    },
    //order
    {
        path: '/order',
        name: 'order',
        component: () =>
            import ('../views/order.vue')
    },
    //cart
    {
        path: '/cart',
        name: 'cart',
        component: () =>
            import ('../views/cart.vue')
    },
    //management
    {
        path: '/management',
        name: 'management',
        component: () =>
            import ('../views/management.vue')
    }
]

const router = new VueRouter({
    routes
})

export default router